package com.xwh.shop.orders.service.service;

import com.xwh.shop.orders.model.dto.CartDTO;
import com.xwh.shop.orders.model.entity.Cart;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xwh
 * @since 2025-07-17
 */
public interface CartService extends IService<Cart> {

    void addCart(CartDTO cartDTO);

    boolean deleteCart(Long memberId);

    boolean reduceItemCart(CartDTO cartDTO);

    Cart updateCart(CartDTO cartDTO);

    List<Cart> getCart();
}
